﻿1857.1.1 = {
	capital = 289

	oob = "SIA_1857"

	set_convoys = 0

	set_research_slots = 2

	set_country_flag = eoang_tag_is_tribal_yes_flag
	
	add_equipment_to_stockpile = { type = infantry_equipment_rifle_0 amount = 1000 producer = SIA }
	add_equipment_to_stockpile = { type = uniform_equipment_0 amount = 1000 producer = SIA }

	set_truce = {
		target = BRM
		days = 750
	}
	
	SIA = { set_variable = { var = has_afr_empire_mechanic_system value = 1 } }

	### Economy
    add_ideas = generic_unemployment_idea
    set_variable = { unemployment_value_modifier = 0.1 }
    set_variable = { current_unemployment = 0.05 }
    clamp_variable = {
        var = current_unemployment
        min = 0
        max = 1
    }
    update_unemployment_modifier = yes
    add_to_variable = { money = 0.13 }

	add_ideas = {
		#POLITICS

		#hos_is_leader
		pre_industrial_era
		agrarian
		#no_heir
		#absolute_monarchy

		civilian_economy
		limited_exports
		army_spending_level_2
		taxation_level_1
		cl_legal

		#stagnation_growth
		border_control
		manpower_tribal_warriors
		slavery
		absolutism

		#no_constitution
		no_elections

		privileged_education
		state_religion
		#religion_theravada

		social_spending_level_1
		law_spending_level_4
		road_spending_level_1
		navy_spending_level_1
		research_spending_level_1

		#NATIONAL SPIRITS
		Oceania_eastern_oriented_regional_power
		SIA_bowring_treaty
		SIA_slow_industry_1
		INDOC_Spirit_Cambodian_Peace

	}
	SIA = {
		set_country_flag = Oceania_industrializing
		add_ideas={}
	}
	# Rivals
		set_variable = { rival_country = BRM.id }
	# Most Favoured Country
		set_variable = { most_favoured_country = CHI.id }

	# Relations with the colonials
		set_variable = { SIA_british_influence = 1 }
		set_variable = { SIA_british_interest = 1 }
		set_variable = { SIA_french_influence = 0 }
		set_variable = { SIA_french_interest = 1 }

	set_politics = {
		ruling_party = autocracy
	}

	set_popularities = {
		anarchism = 0
		ideology_social_liberalism = 0
		ideology_radical_socialism = 0
		social_egalitarianism = 0
		centrism = 0
		traditional_conservatism = 0
		radical_democracy = 0
		chauvinist_populism = 0
		autocracy = 100
		fundamentalism = 0
	}

	SIA = {
		set_autonomy = {
			target = CAM
			autonomous_state = autonomy_dominion
			freedom_level = 0.9
		}
		set_autonomy = {
			target = LUA
			autonomous_state = autonomy_dominion
			freedom_level = 0.8
		}
		set_autonomy = {
			target = CSK
			autonomous_state = autonomy_dominion
			freedom_level = 0.5
		}
		CAM = {
			set_variable = { var = afr_empire_subject_overlord value = SIA.id }
			set_variable = { var = CAM.afr_empire_subject_loyalty_varSIA value = 8 }
			clamp_variable = { var = CAM.afr_empire_subject_loyalty_varSIA min = -1 max = 10 }
		}
		LUA = {
			set_variable = { var = afr_empire_subject_overlord value = SIA.id }
			set_variable = { var = LUA.afr_empire_subject_loyalty_varSIA value = 7 }
			clamp_variable = { var = LUA.afr_empire_subject_loyalty_varSIA min = -1 max = 10 }
		}
		CSK = {
			set_variable = { var = afr_empire_subject_overlord value = SIA.id }
			set_variable = { var = CSK.afr_empire_subject_loyalty_varSIA value = 3 }
			clamp_variable = { var = CSK.afr_empire_subject_loyalty_varSIA min = -1 max = 10 }
		}
	}

	# Technology
	eoanbsys_technology_setup_developed_asia_1857 = yes

	# POLITICAL LEADERS

	recruit_character = SIA_character_rama_chakri_iv
	recruit_character = SIA_character_pinklao 
	recruit_character = SIA_character_chulalongkorn 
	recruit_character = SIA_character_surasakmontri 
	recruit_character = SIA_character_chao_oun_kham
}